package me.jessyan.armscomponent.app.mvp.model.entity;

import java.util.List;

/**
 * Desc:
 * Created by taoze
 * on 2021/9/20
 **/
public class QuestionRequest {
    //问题ID 示例：0fvsuh52kfjvtt06sn26
//    @SerializedName("“questionId”")
    private String questionId;
    //问题类型 示例：2 （1：选择题，2：判断题，3：问答题）
//    @SerializedName("“questionType”")
    private int questionType;
    //选择题解答（多选用,号隔开），判断题解答（1：代表是 或 0：代表否），问答题解答内容
    private String answer;

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public static QuestionRequest convert(Question question){
        QuestionRequest request = new QuestionRequest();
        request.setQuestionId(question.getQuestionId());
        request.setQuestionType(question.getQuestionType());
        request.setAnswer(question.getAnswer());
        return request;
    }

}
